package rpc_client

import (
	"github.com/sirupsen/logrus"
	"github.com/smallnest/rpcx/client"
)

var discover client.ServiceDiscovery

func StartRpcxClient() {
	logrus.Info("启动rpcx客户端")
	d, err := client.NewPeer2PeerDiscovery("tcp@localhost:8972", "")
	if err != nil {
		logrus.Error(err)
		panic(err)
	}
	discover = d

	createUserClient()
	createActivityClient()
	createPatientClient()
}
